#ifndef __RENDERSCRH__
#define __RENDERSCRH__

typedef struct {
	char ip[32];
	int port;
	int imgw, imgh;
	int trans;
} xarg;

extern xarg txinfo;
extern xarg rxinfo;


void start_render_thread(void);
void stop_render_thread(void);
void start_render_samp(void);
void stop_render_samp(void);


void open_scr_encoder(void);
void close_scr_encoder(void);
unsigned char* encode_scr_jpeg(void* rawimg, unsigned long* jpegSize, int width, int height);
unsigned char* encode_raw_jpeg(void* rawimg, unsigned long *jpegSize, int width, int height);


#endif

